<?php


namespace app\api\model;


use think\Model;

/*
 * 星级
 * */
class Quality extends Model
{

    // 表名
    protected $name = 'quality';

    // 自动写入时间戳字段
    protected $autoWriteTimestamp = true;


    public function getQuality()
    {
        $res = self::field('id,name')->order('weigh desc')->select();
        return api_message($res);
    }

}